]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
userMenu: Remove 'Switch Session' item
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 28 Sep 2012 16:52:12 +0000 (18:52 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 4 Oct 2012 06:57:55 +0000 (08:57 +0200)
GDM does not allow concurrent logins of a single user, so making
'Switch Session' a user switch operation does not work - in order
to choose a different session, users have to log out.
Rather than making 'Switch Session' an alias of 'Log out' (which
is available anyway when multiple sessions are defined), remove
the item altogether - 'Switch Session' suggests an operation that
does not loose state, and we currently favor 'Switch Session' over
'Switch User', so on systems that have both multiple users and
multiple sessions, the latter would become unavailable.

https://bugzilla.gnome.org/show_bug.cgi?id=685062

js/ui/userMenu.js

index 6ed2e8443c2d8aea55f509f0f22bf6574e3f0d0e..cfa105ae8e78a705828f743604c50ddd379b9382 100644 (file)
@@ -613,11 +613,8 @@ const UserMenuButton = new Lang.Class({
     _updateSwitchUser: function() {
         let allowSwitch = !this._lockdownSettings.get_boolean(DISABLE_USER_SWITCH_KEY);
         let multiUser = this._userManager.can_switch() && this._userManager.has_multiple_users;
-        let multiSession = Gdm.get_session_ids().length > 1;
 
-        this._loginScreenItem.label.set_text(multiUser ? _("Switch User")
-                                                       : _("Switch Session"));
-        this._loginScreenItem.actor.visible = allowSwitch && (multiUser || multiSession);
+        this._loginScreenItem.actor.visible = allowSwitch && multiUser;
     },
 
     _updateLogout: function() {